package cn.edu.bupt.ch4_2.dto;

import cn.edu.bupt.ch4_2.entity.Comment;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;


import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(name = "商品及评论")
public class ProductWithComments {
    private Long id;
    private String name;
    private BigDecimal price;
    private boolean inStock;
    List<Comment> commentList;
}
